package com.kehutong.applet.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * @program: kht
 * @description: 小程序菜单信息
 * @author: joneron
 * @create: 2021/5/24
 **/
@Table(value="t_applet_menu", comment="小程序菜单管理", idType = IDType.TIMESTAMP)
public class AppletMenuEntity  extends Entity {

    private static final long serialVersionUID = -2140349283080078404L;

    protected AppletMenuEntity(String id) {
        super(id);
    }

    @CheckField("菜单名称不能为空")
    @Column(comment="菜单名称")
    private String menuName;

    @Column(comment="页面数量")
    private Integer pageNum;

    @Column(comment="排序值")
    private Integer sortNum;

    @Column(comment="创建人")
    private String createName;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
